package com.tuling.apollo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author : fjc.dane@gmail.com
 * @motto : talk is cheap, show me the code. salute the future!
 */

@Controller
@ResponseBody
@RequestMapping("/index")
public class IndexController {
    @Value("${serverName:test}")
    private String serverName;

    @RequestMapping("/getServerName")
    public String getServerName() {
        return serverName;
    }
}
